<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /*
          nodejs 模块化
            单个导出 exports.num=88;
            exports.say=function () {  };
            // 导入
            var a=require("./a.js");
            a---{num:88,say:function(){}}
            // 集中导出
            module.exports=function (param) {  }
            module.exports={
                num:num,
                router
            }
            //导入
            var b=require("./b.js");
            b()
            b.num


        */
    </script>
  </body>
</html>
